package io;

import java.io.File;
import java.util.Arrays;

public class IODemo4 {
    public static void main(String[] args) {
        File file = new File(".");//当前路径
        //打印当前路径所有的文件
        //String[] dress = file.list();
        //System.out.println(Arrays.toString(dress));

        File[] files = file.listFiles();
        System.out.println(Arrays.toString(files));
    }
}
